/* Copyright (C) 2008  Romolo Camplani, Marco Fortunato, Marco Marelli, Guido Rota, Fabio A. Schreiber et al.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

/*
 * Main.java
 *
 * Created on October 24, 2007, 9:02 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.dei.perla.utils.emulator.app;

import java.util.*;

import org.dei.perla.utils.emulator.model.node.Node;
import org.dei.perla.utils.emulator.runtime.ModelDescriptionBuilder;
import org.dei.perla.utils.emulator.runtime.SimulationPerformer;    
/**
 *
 * @author Adnan
 */

/* More things that I can add:
 * 1. Make an input class. By which you can create node, delete node, put query.
 *    you can give input either through keyboard or from file.
 * 2. Make enable the world model. Initial values of the world model should be given as file.
 *    We should be able to change the temparature of a place. It will change the world model.
 * 3. 
 */
public class Main {
    
    /** Creates a new instance of Main */
    public Main() {
    }
    
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        ModelDescriptionBuilder mdb = new ModelDescriptionBuilder();
        ArrayList<Node> nodes = mdb.go();
        
   
       SimulationPerformer sp = new SimulationPerformer(nodes);
       sp.go();
        
       
//ArrayList<Node> nodes = mdb.getNodes();
     //  if (nodes.isEmpty())
      //      System.out.println("nodes is empty - from main");
       
    }
    
    
}
